import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'
import BaseCommand01 from '../views/01command/BaseCommand01.vue'
import FormCommand01 from '../views/01command/表单绑定指令.vue'
import EventCommand01 from '../views/01command/事件绑定指令.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  {
    path: '/baseCommand01',
    component: BaseCommand01
  },
  {
    path: '/formCommand01',
    component: FormCommand01
  },
  {
    path: '/eventCommand01',
    component: EventCommand01
  }
]

const router = new VueRouter({
  routes
})

export default router
